@extends('admin.base')
	@section('content')
        <!-- Content Header (Page header) -->
        <section class="content-header">
			<h1>
				<i class="fa fa-calendar"></i>
				用户详情管理
			</h1>
			<ol class="breadcrumb">
				<li><a href="{{url('admin')}}"><i class="fa fa-dashboard"></i> 首页</a></li>
				<li><a href="#">链接信息管理</a></li>
				<li class="active">添加友情链接</li>
			</ol>
        </section>

        <!-- Main content -->
        <section class="content">
			<div class="row">
				<!-- right column -->
				<div class="col-md-12">
					<!-- Horizontal Form -->
					<div class="box box-primary">
						<div class="box-header with-border">
							<h3 class="box-title"><i class="fa fa-plus"></i> 用户详情信息</h3>
						</div><!-- /.box-header -->
						<!-- form start -->
						<form class="form-horizontal" method="post" action="{{url('admin/users')}}/{{$list->id}}">

							<input type="hidden" name="_method" value="PUT">
							<input type="hidden" name="_token" value="{{ csrf_token() }}">
							<div class="box-body row">
								<div class="form-group col-md-6">
									<div class="form-group">
										<label for="inputEmail3" class="col-md-2 control-label">用户ID</label>
										<div class="col-md-4">
											<input class="form-control" type="text" style="width:200px;" name="lname"  value="{{$list->id}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">账号名</label>
										<div class="col-sm-4">
											<input class="form-control" type="text" style="width:200px;" class="form-control" name="url" value="{{$list->uname}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">真实姓名</label>
										<div class="col-sm-4">
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="linkorder" value="{{$lists->name}}" readonly>
										</div>
									</div>
									<div class="form-group">
									<label for="inputEmail3" class="col-sm-2 control-label">昵称</label>
									<div class="col-sm-4">
										<input type="text" class="form-control" style="width:200px;" class="form-control" name="linkorder" value="{{$lists->nickname}}" readonly>
									</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">性别</label>
										<div class="col-sm-4">
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="linkorder" value="{{$lists->sex='m'?'男':'女'}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">年龄</label>
										<div class="col-sm-4">
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="linkorder" value="{{$lists->age}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
										<div class="col-sm-4">
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="linkorder" value="{{$lists->email}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">手机号</label>
										<div class="col-sm-2">
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="logo" value="{{$list->phone}}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">登录时间</label>
										<div class="col-sm-4" >
											<input type="text" class="form-control" style="width:200px;" class="form-control" name="newtime"  value="{{$list->newtime}}" readonly>
										</div>
									</div>
								</div>
								
								<div class="form-group col-md-6" style="border-left:1px dotted #ddd">
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">状态</label>
										<div class="col-sm-4">
											<select name="status" >
												<option {{$list->status=='close'?'selected':''}} value="close">关闭</option>
												<option {{$list->status=='open'?'selected':''}} value="open">开启</option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">权限</label>
										<div class="col-sm-2">
											<select name="power">
												<option {{$list->power=='1'?'selected':''}} value="1">前台用户</option>
												<option {{$list->power=='2'?'selected':''}} value="2">一级管理</option>
												<option {{$list->power=='3'?'selected':''}} value="3">三级管理</option>
												<option {{$list->power=='4'?'selected':''}} value="4">四级管理</option>
												<option {{$list->power=='5'?'selected':''}} value="5">五级管理</option>
											</select>
										</div>
									</div>
									
									<div class="form-group">
										<label for="inputEmail3" class="col-md-2 control-label">会员等级</label>
										<div class="col-md-4">
											<select name="member">
												<option {{$list->member=='1'?'selected':''}} value="1">一级会员</option>
												<option {{$list->member=='2'?'selected':''}} value="2">二级会员</option>
												<option {{$list->member=='3'?'selected':''}} value="3">三级会员</option>
												<option {{$list->member=='4'?'selected':''}} value="4">四级会员</option>
												<option {{$list->member=='5'?'selected':''}} value="5">五级会员</option>
												<option {{$list->member=='6'?'selected':''}} value="6">六级会员</option>
												<option {{$list->member=='7'?'selected':''}} value="7">七级会员</option>
												<option {{$list->member=='8'?'selected':''}} value="8">八级会员</option>
												<option {{$list->member=='9'?'selected':''}} value="9">九级会员</option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label for="inputEmail3" class="col-sm-2 control-label">会员积分</label>
										<div class="col-sm-4" >
											<input type="text" style="width:200px;" class="form-control" name="grade"  value="{{$list->grade}}">
										</div>
									</div>
									<div class="box-footer">
										<div class="col-sm-offset-2 col-sm-2">
											<button type="submit" class="btn btn-primary" >提交</button>
										</div>&nbsp;
										<div class="col-sm-2">
											<button type="reset"  class="btn btn-primary">重置</button>
										</div>
									</div><!-- /.box-footer -->
								</div>
							</div>
						</form>
						<div class="row"><div class="col-sm-12">&nbsp;</div></div>
					</div><!-- /.box -->
				</div><!--/.col (right) -->
			</div>   <!-- /.row -->
        </section><!-- /.content -->
    @endsection